#{extends 'master.html' /}
#{set title:"DigitalBand.ru - Фото" /}
#{set isCatalogActive:'active' /}
<div class="page-block">
    <div class="gallery">
        <a href="@{Product.gallery(productId, (imageNumber+1) > imagesCount ? 1 : (imageNumber+1))}">
        <img src="@{Product.productImage(productId, imageNumber, 550, 300, 'png')}" alt=""/></a>
        <ul class="image-list">
            #{list items:1..imagesCount, as:'i'}
            <li>
                <a href="@{Product.gallery(productId, i)}">
                    <img src="@{Product.productImage(productId, i, 90, 90, 'png')}" alt=""/>
                </a>
            </li>
            #{/list}
        </ul>
    </div>
</div>